<!DOCTYPE html>
<html lang="zh-cn">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>网易云音乐</title>
    <link rel="stylesheet" href="swiper-bundle.css">
    <style>
        * {
            padding: 0;
            margin: 0;
            box-sizing: border-box;
            list-style: none;
        }

        .top {
            display: flex;
            width: 100%;
            height: 70px;
            background-color: rgb(36, 36, 36);
            justify-content: center;

            .m-top {
                display: flex;
                width: 1100px;
                height: 100%;
                margin: 0 auto;
                /* background-color: blue; */
                justify-content: start;
                align-items: center;
                color: #ccc;

                &>a {
                    display: block;
                    height: 100%;
                    width: 167px;
                    background-color: pink;
                    overflow: hidden;
                    flex-shrink: 0;

                    img {
                        width: 100%;
                        height: 100%;
                    }

                }

                ul {
                    display: flex;
                    /* width: 588px; */
                    height: 100%;
                    box-sizing: content-box;
                    /* background-color: yellow; */
                    justify-content: space-between;
                    align-items: center;
                    flex-shrink: 0;

                    li {
                        padding: 0 19px;
                        line-height: 70px;

                    }
                }

                .search {
                    position: relative;
                    width: 158px;
                    height: 32px;
                    min-width: 158px;
                    background-color: white;
                    border-radius: 32px;
                    font-size: 12px;

                    img {
                        position: absolute;
                        width: 20px;
                        height: 20px;
                        left: 5px;
                        top: 5px;
                    }

                    span {
                        position: absolute;
                        left: 32px;
                        top: 8px;
                    }

                    /* input {
                        outline: 0;
                    } */

                    /* margin: 19px 0 0; */
                }

                .creator {
                    width: 90px;
                    height: 32px;
                    min-width: 90px;
                    /* background-color: palevioletred; */
                    margin-left: 12px;
                    border-radius: 20px;
                    text-align: center;
                    font-size: 12px;
                    color: #ccc;
                    line-height: 32px;
                    border: 1px solid #ccc;

                    &:hover {
                        color: white;
                        border: 1px solid white;

                    }
                }

                .load {
                    /* display: flex;
                     */
                    width: 28px;
                    margin-left: 20px;
                    font-size: 12px;
                    /* background-color: red; */
                    /* flex-direction: row;
                     */
                    color: #999;
                    flex-shrink: 0;

                    &:hover {
                        color: #787878;

                    }
                }
            }
        }

        .nav {
            display: flex;
            justify-content: center;
            align-items: center;
            width: 100%;
            height: 34px;
            background-color: red;

            .m-nav {
                width: 1100px;
                height: 100%;
                padding-left: 180px;
                font-size: 12px;

                ul {
                    display: flex;
                    justify-content: start;

                    li {
                        color: white;
                        height: 100%;
                        text-align: center;
                        line-height: 34px;
                    }
                }
            }
        }

        .banner {
            width: 100%;
            height: 285px;
            /* background-color: pink; */

            .slider {
                position: relative;
                width: 982px;
                height: 100%;
                margin: 0 auto;
                background-color: yellow;

                .swiper {
                    width: 100%;
                    height: 100%;
                    overflow: visible;
                }

                .swiper-slide {
                    text-align: center;
                    font-size: 18px;
                    background: #fff;
                    display: flex;
                    justify-content: center;
                    align-items: center;
                }

                .swiper-slide img {
                    display: block;
                    position: absolute;
                    left: 0;
                    width: 730px;
                    height: 100%;
                    object-fit: cover;
                }

                .swiper-pagination {
                    width: 100%;
                    height: 20px;
                    margin-left: -110px;

                }

                .swiper-pagination-bullet-active {
                    /* opacity: var(--swiper-pagination-bullet-opacity, 1); */
                    background: #C20B0B
                }

                .swiper-button-next {
                    margin-right: -70px;
                    color: #ddd4d2;
                }

                .swiper-button-prev {
                    margin-left: -70px;
                    color: #ddd4d2;

                }

                .download {
                    position: absolute;
                    width: 252px;
                    height: 285px;
                    right: 0px;
                    top: 0;
                    z-index: 1001;
                }
            }
        }
    </style>
</head>

<body>
    <div class="top">
        <div class="m-top">
            <a href="#" class="logo">
                <img src="img/logo.png" alt="">
            </a>
            <ul>
                <li>发现音乐</li>
                <li>我的音乐</li>
                <li>关注</li>
                <li>商城</li>
                <li>音乐人</li>
                <li>云推歌</li>
                <li>下载客户端</li>
            </ul>
            <div class="search">
                <img src="img/fandajin.png" alt="">
                <!-- <input type="text" class="flag"><label class="flag">音乐/视频/电台/用户</label> -->
                <span>音乐/视频/电台/用户</span>
            </div>
            <div class="creator">创作者中心</div>
            <div class="load">登录</div>
        </div>

    </div>
    <div class="nav">
        <div class="m-nav">
            <ul>
                <li style="width: 84px;">推荐</li>
                <li style="width: 96px;">排行榜</li>
                <li style="width: 84px;">歌单</li>
                <li style="width: 108px;">主播电台</li>
                <li style="width: 84px;">歌手</li>
                <li style="width: 108px;">新碟上架</li>
            </ul>
        </div>
    </div>
    <div class="banner">
        <div class="slider">
            <!-- Swiper -->
            <div class="swiper mySwiper">
                <div class="swiper-wrapper">
                    <div class="swiper-slide"><img src="img/car-1.jpg" alt=""></div>
                    <div class="swiper-slide"><img src="img/car-2.jpg" alt=""></div>
                    <div class="swiper-slide"><img src="img/car-3.jpg" alt=""></div>
                    <div class="swiper-slide"><img src="img/car-4.jpg" alt=""></div>
                    <div class="swiper-slide"><img src="img/car-5.jpg" alt=""></div>


                </div>
                <div class="swiper-button-next"></div>
                <div class="swiper-button-prev"></div>
                <div class="swiper-pagination"></div>
                <img src="img/download.png" class="download" alt="">
            </div>
        </div>
    </div>
</body>
<!-- Swiper JS -->
<script src="swiper-bundle.js"></script>

<!-- Initialize Swiper -->
<script>
    var swiper = new Swiper(".mySwiper", {
        cssMode: true,
        loop: true,
        navigation: {
            nextEl: ".swiper-button-next",
            prevEl: ".swiper-button-prev",
        },
        pagination: {
            el: ".swiper-pagination",
        },
        mousewheel: true,
        keyboard: true,
    });
</script>

</html>